package traits

/**
 * User: ivan
 * Date: 4/15/14
 */
object FrogWrapper {

  class Animal


  class FrogSimple  extends  Philosophical {}

  class FrogOverride extends Animal with   Philosophical {
    override def toString: String = "FrogOverride"

    override def philosophize() = { println("I consume memory, therefore I am " +toString +" !")}
  }


  def main(args : Array[String]){
    val frog = new FrogSimple
    frog.philosophize()
    println("*********************")
    val frogOver:Philosophical  = new FrogOverride
    frogOver.philosophize()
  }
}
